package com.gopay.common.constants.cbrmb;

public enum AllocationOptType {
    CREATE("CREATE"),ONGOING("ONGOING"),SUCCESS("SUCCESS"),FAIL("FAIL"),MANUAL_UPDATE("MANUAL_UPDATE");
    
    private String value;
    
    private AllocationOptType(String value) {
        this.value = value;
    }
    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }
    
    public static String translate2Chinese(String value) {
        AllocationOptType type = Enum.valueOf(AllocationOptType.class, value);
        switch (type) {
        case CREATE:
            return "创建拨款单";
        case ONGOING:
            return "支付中";
        case SUCCESS:
            return "支付成功";
        case FAIL:
            return "支付失败";
        case MANUAL_UPDATE:
            return "更新成功";

        default:
            return "";
        }
    }
}
